﻿#region Imports
using System;
using System.Windows;
using Numister.ViewModels;
#endregion Imports

namespace Numister
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        #region Constructors
        public MainWindow()
        {
            InitializeComponent();
            Dispatcher.BeginInvoke(new Action(() => { this.DataContext = new MainViewModel(); }));

            tglExpand.IsChecked = true;
        }
        #endregion Constructors

        #region Events
        private void tglExpand_Checked(object sender, RoutedEventArgs e)
        {
            tglExpand.Content = tglExpand.IsChecked.Value ? "<" : ">";
            stkActions.Visibility = tglExpand.IsChecked.Value ? Visibility.Visible : Visibility.Collapsed;
        }
        #endregion Events
    }
}
